package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.time.LocalDateTime;

/**
 * 储罐可执行动作配置对象 ingre_vat
 *
 * @author ruoyi
 * @date 2025-02-12
 */
@Data
@ApiModel("储罐可执行动作配置对象 ingre_vat")
public class IngreVat
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 储罐类型,粉料,乳液,助剂,预混,调漆 */
    @Excel(name = "储罐类型,粉料,乳液,助剂,预混,调漆")
    @ApiModelProperty("储罐类型,粉料,乳液,助剂,预混,调漆")
    private Integer vatType;

    /** 储罐代号 */
    @Excel(name = "储罐代号")
    @ApiModelProperty("储罐代号")
    private Integer vatName;

    /** 物料编号 */
    @Excel(name = "物料编号")
    @ApiModelProperty("物料编号")
    private String ingreNo;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty("物料名称")
    private String ingreName;

    /** 是否可设置物料重量 */
    @Excel(name = "是否可设置物料重量")
    @ApiModelProperty("是否可设置物料重量")
    private Integer hasWght;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty("tag")
    private String tag;

    /** 当前储罐是否可用，1可用；0不可用 */
    @Excel(name = "当前储罐是否可用，1可用；0不可用")
    @ApiModelProperty("当前储罐是否可用，1可用；0不可用")
    private Integer isEnable;

    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "update_time",fill = FieldFill.UPDATE)

    private LocalDateTime updateTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setVatType(Integer vatType)
    {
        this.vatType = vatType;
    }

    public Integer getVatType()
    {
        return vatType;
    }
    public void setVatName(Integer vatName)
    {
        this.vatName = vatName;
    }

    public Integer getVatName()
    {
        return vatName;
    }
    public void setIngreNo(String ingreNo)
    {
        this.ingreNo = ingreNo;
    }

    public String getIngreNo()
    {
        return ingreNo;
    }
    public void setIngreName(String ingreName)
    {
        this.ingreName = ingreName;
    }

    public String getIngreName()
    {
        return ingreName;
    }
    public void setHasWght(Integer hasWght)
    {
        this.hasWght = hasWght;
    }

    public Integer getHasWght()
    {
        return hasWght;
    }
    public void setTag(String tag)
    {
        this.tag = tag;
    }

    public String getTag()
    {
        return tag;
    }
    public void setIsEnable(Integer isEnable)
    {
        this.isEnable = isEnable;
    }

    public Integer getIsEnable()
    {
        return isEnable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("vatType", getVatType())
                .append("vatName", getVatName())
                .append("ingreNo", getIngreNo())
                .append("ingreName", getIngreName())
                .append("hasWght", getHasWght())
                .append("tag", getTag())
                .append("isEnable", getIsEnable())
                .toString();
    }
}
